<div class="content">
<div class="presentation">
<h1><?php echo $item['Item']['name']?></h1>
<?php  echo $html->image('v_avatar.png'); ?>
<h4><?php echo $item['Item']['description']; ?></h4>
<h2>Motivations:</h2> 
<p>
<!-- To see the motivations behind the votes -->
	<ul>
	<?php foreach ($item['Vote'] as $vote):?><li><q>
    <?php echo $vote['motivation'];?></q></li>
   	<?php endforeach;?>
    </ul>
</p>
</div>

<h3><span id="resign">
<?php echo $html->link('Resign!!', array('controller'=>'votes','action'=>'add', $item['Item']['id'])); ?></span></h3>


<div class="comments">
<?php echo $html->link('Comment', array('controller'=>'comments','action'=>'add', $item['Item']['id'])); ?>

<h2>Comments:</h2>
	<?php foreach ($item['Comment'] as $comment):?>
<div class="commentheader">
<?php if ($comment['user_id']!=NULL) {
	echo $comment['user_id'];
} else {
	echo $comment['guest_name'];
} ?>
</div>
<div class="commenttext">
	
    <?php echo $comment['comment'];?>
   	
</div>
<div class="commentmeta">
</div>
	<?php endforeach;?>
</div>
</div>